package Core;

import Logic.BaseCommand;

import java.util.Collection;
import java.util.Iterator;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;

public class CommandQueue {
    private CommandQueue() {}

    private static CommandQueue _instance;

    public static CommandQueue Instance() {
        if (_instance == null) {
            _instance = new CommandQueue();
        }
        return _instance;
    }

    private BlockingDeque<BaseCommand> commandQueue = new LinkedBlockingDeque<BaseCommand>();

    public BlockingQueue getQueue() {
        return commandQueue;
    }
}
